import request from '@/utils/request'
export default {
    //根据选中三级分类后获取平台属性列表
    // /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
    // attrInfoList
    getAttrInfoList(category1Id,category2Id,category3Id){
        return request.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`);
    },


    delete(attrId){
        return request.delete(`/admin/product/deleteAttr/${attrId}`)
    },
    //根据ID删除平台某个属性
    // DELETE /admin/product/deleteAttr/{attrId}
    // deleteAttr 

    //添加或者修改属性  
    // POST /admin/product/saveAttrInfo

    updateAttrInfo(attr){
        return request.post(`/admin/product/saveAttrInfo`,attr);
    }
}